Paradigms : Searching Kees van der Laan

نویسنده

  • Kees van der Laan
چکیده

%Salomon’s fitting text to a box % %Sept 95, [email protected] \begingroup %Text \toks0{Leentje leerde lotje lopen langs de lange lindenlaan.} %Restrictions \hsize=3cm \dimen1=20pt%\vsize=20pt \def\showresult{\rlap{\f Fontsize=\the\dimen0\quad ht, dp=\the\ht0, \the \dp0} \copy0\smallbreak} %Start: first estimate size of font \dimen0=5pt \loop\font\f=cmr10 at\dimen0 \setbox0=\vbox{\tolerance10000 \baselineskip\dimen0 \f \the\toks0 } \showresult \ifdim\ht0<\dimen1 %next, linear search \advance\dimen0 by1pt \repeat %make the best fit \advance\dimen0 by-1pt \font\f=cmr10 at\dimen0 \setbox0=\vbox to\dimen1{\tolerance10000 \baselineskip\dimen0 plus 1pt minus1pt \f \the\toks0 } \showresult \endgroup

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Typesetting Bridge via !I&X

Enhonced plain Tfl macros and a bidding environment for typesetting bridge tord distributions and bidding sequcnces are givcn. As a follow-up of the UTfi macro8 given in 1121. Moreover, macros for annoiated printing of the coume of the play are provided. Eramplea of use are included.

متن کامل

Typesetting number sequences FIFO and some more : : : Kees van der Laan

Typesetting sequences of numerical values, represented via symbolic names which get their values on the fly, is dealt with. The sorting of the sequence is done by a linear sorting algorithm, of complexity O(n2). Three or more consecutive numbers are typeset as a range. The objective was to encode typesetting sequences of numbers as simple,concise, general, compatible, modular, orthogonal, and :...

متن کامل

Math into BLUes 1 Kees van der Laan

TEXing mathscripts is not simply typing. Math has to be translated into TEX commands. First the motivation for this work is given. Next traditional math page make-up is summarized along with the macroscopic math TEX commands. After answering ‘Why TEXing mathscripts is difficult?’ an anthology of TEXfalls and their antidotes is discussed. At the end suggestions are given in order to lessen the d...

متن کامل

Paradigms: Just a little bit of PostScript

It is all about creating EPS—with graphics— to be merged with (La)TEX scripts. The emphasis is on creating raw PostScript for simple symmetrical pictures. Asides, like incorporating accurate graphs of math functions, typesetting text along curved paths, or tables set sideways, next to reverse video, clipping and tiling have been addressed. A poor man’s mftoeps approach is touched upon: (declara...

متن کامل

Paradigms: The winds and halfwinds—Details matter

The discussion below explains what has been used in BLUe’s format system in the turtle graphics2 macros, especially in the coding of \N, \E, \S, \W, \NE, \SE, \SW, \NW, next to \ESE, and \WSW. Examples are included which show what can be attained by these basic functionalities. It is also shown how the obtained pictures can be stored in the picture database pic.dat for reuse with different scal...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1997